package com.ywjt.pinkelephant.home.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ywjt.pinkelephant.R;
import com.ywjt.pinkelephant.base.BaseActivity;
import com.ywjt.pinkelephant.widget.BackBottomDialog;

public class ActivityTool extends BaseActivity implements View.OnClickListener {

private LinearLayout llLinkToText,llVideoToText;

    public static void actionStart(Context context ) {
        Intent intent = new Intent(context, ActivityTool.class);
        context.startActivity(intent);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.llLinkToText:
                //链接转台本
                ActivityLinkToText.actionStart(ActivityTool.this);
                break;
            case R.id.llVideoToText:
                ActivityVideoToText.actionStart(ActivityTool.this);
                break;
        }
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.activity_tool;
    }

    @Override
    protected void initView() {
        setTitleText("工具");
        llLinkToText=findViewById(R.id.llLinkToText);
        llVideoToText=findViewById(R.id.llVideoToText);

        llLinkToText.setOnClickListener(this::onClick);
        llVideoToText.setOnClickListener(this::onClick);

    }

    @Override
    protected void initData() {

    }

    /**
     * 获取要使用的标题栏样式(此函数由子类重写)
     * @return
     */
    @Override
    protected int getTitleBarType() {
        return 0;
    }

}
